package com.tbgov.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 家庭成员脱贫信息表
 * </p>
 *
 * @author 1st
 * @since 2024-11-19
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("family_member_poverty")
@Schema(name = "FamilyMemberPoverty", description = "家庭成员脱贫信息表")
public class FamilyMemberPoverty implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "脱贫信息主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "关联家庭成员(family_member)主键id")
    private Long memberId;
    @Schema(description = "关联脱贫信息项(family_poverty_option)主键id")
    private Long povertyId;
    @Schema(description = "脱贫信息项名称")
    @TableField(exist = false)
    private String povertyName;
    @Schema(description = "脱贫信息类型 内容说明")
    private String content;
    @Schema(description = "系统自动创建")
    private LocalDateTime createTime;
    @Schema(description = "系统自动修改")
    private LocalDateTime updateTime;
}
